from flask_script import Manager,Server
from flask_migrate import MigrateCommand
from apps import create_app
from apps.settings import DEVELOP
# from flask_login import LoginManager
# loginmanager=LoginManager()

app = create_app(DEVELOP)
manage = Manager(app)
manage.add_command('run',Server(host='127.0.0.1',port=9000,use_debugger=True))
manage.add_command('db',MigrateCommand)

if __name__ == '__main__':
    manage.run()
